home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / scsh-0.4 / scsh-0 / scsh-0.4.2 / scsh / network1.h < prev    next >
C/C++ Source or Header  |  1995-10-22  |  3KB  |  100 lines

  1. /* Exports from network1.c. */
  2.  
  3. int scheme_bind(int sockfd, int family, scheme_value scheme_name);
  4.  
  5. int scheme_connect(int sockfd, int family, scheme_value scheme_name);
  6.  
  7. int scheme_accept(int sockfd, int family, scheme_value scheme_name);
  8.  
  9. int scheme_peer_name(int sockfd, int family, scheme_value scheme_name);
  10.  
  11. int scheme_socket_name(int sockfd, int family, scheme_value scheme_name);
  12.  
  13. int scheme_socket_pair(int type, int *s1, int *s2);
  14.  
  15. int recv_substring(int s, int flags, scheme_value buf, 
  16.            int start, int end, scheme_value scheme_name);
  17.  
  18. int send_substring(int s, int flags, scheme_value buf, int start, int end,
  19.            int family, scheme_value scheme_name);
  20.  
  21. int scheme_getsockopt (int s, int level, int optname);
  22.  
  23. int scheme_getsockopt_linger (int s,
  24.                   int level,
  25.                   int optname,
  26.                   int *out_time);
  27.  
  28. int scheme_getsockopt_timeout (int s,
  29.                    int level,
  30.                    int optname,
  31.                    int *out_usec);
  32.  
  33. int scheme_setsockopt (int s,
  34.                int level,
  35.                int optname,
  36.                int optval);
  37.  
  38. int scheme_setsockopt_linger (int s,
  39.                   int level,
  40.                   int optname,
  41.                   int onoff,
  42.                   int linger);
  43.  
  44. int scheme_setsockopt_timeout (int s,
  45.                    int level,
  46.                    int optname,
  47.                    int sec,
  48.                    int usec);
  49.  
  50. int scheme_host_address2host_info(scheme_value scheme_name,
  51.                   char** hostname,
  52.                   char*** aliases,
  53.                   char*** addresses);
  54.  
  55. int scheme_host_name2host_info(const char* scheme_name,
  56.                    char**  hostname,
  57.                    char*** aliases,
  58.                    char*** addresses);
  59.  
  60. int scheme_net_address2net_info(scheme_value scheme_name,
  61.                 scheme_value scheme_net,
  62.                 char** netname,
  63.                 char*** aliases);
  64.  
  65. int scheme_net_name2net_info(const char* scheme_name,
  66.                  scheme_value scheme_net,
  67.                  char**  netname,
  68.                  char*** aliases);
  69.  
  70.  
  71. /* in_port should be declared u_short, but cig doesn't know about them. */
  72.  
  73. int scheme_serv_port2serv_info(int in_port,
  74.                    const char* in_proto,
  75.                    char**       out_servname,
  76.                    char***     out_aliases,
  77.                    int*        out_port,
  78.                    char**      out_protocol);
  79.  
  80. int scheme_serv_name2serv_info(const char* in_name,
  81.                    const char* in_proto,
  82.                    char**   out_servname,
  83.                    char***  out_aliases,
  84.                    int*     out_port,
  85.                    char**   out_protocol);
  86.  
  87. int scheme_proto_num2proto_info(int     in_proto,
  88.                 char**  out_protoname,
  89.                 char*** out_aliases,
  90.                 int*    out_protocol);
  91.  
  92. int scheme_proto_name2proto_info(const char*   in_name,
  93.                  char**  out_protoname,
  94.                  char*** out_aliases,
  95.                  int*    out_protocol);
  96.  
  97. void set_longvec_carriers(scheme_value svec, long const * const * cvec);
  98.  
  99. scheme_value veclen(const long *vec);
  100.